<?php

defined('WEB_ROOT')
	|| define('WEB_ROOT', 
			  realpath(dirname(__FILE__)));

defined('APPLICATION_PATH')
	|| define('APPLICATION_PATH', 
			  realpath(dirname(__FILE__) . '/application'));

defined('APPLICATION_ENV')
    || define('APPLICATION_ENV',
              (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV')
                                         : 'developer'));		  

set_include_path(implode(PATH_SEPARATOR, array(
    dirname(__FILE__) . '/library',
    get_include_path(),
)));
                                         
//===================== DUONG DAN PATH =======================================

define('PUBLIC_PATH', realpath(dirname(__FILE__) . '/public'));

define('LIBRARY_PATH', realpath(dirname(__FILE__) . '/library'));

define('TEMPLATE_PATH', PUBLIC_PATH . '/templates');

define('SCRIPTS_PATH',PUBLIC_PATH . '/scripts');

define('FILES_PATH',PUBLIC_PATH . '/files');

define('BLOCK_PATH',APPLICATION_PATH . '/blocks');

define('CAPTCHA_PATH',PUBLIC_PATH . '/captcha');



//===================== DUONG DAN URL =======================================

define('APPLICATION_URL','');

define('PUBLIC_URL',APPLICATION_URL.'/public');

define('TEMPLATE_URL', '/public/templates');

define('FILES_URL',PUBLIC_URL . '/files');

define('SCRIPTS_URL', APPLICATION_URL. '/public/scripts');

define('CAPTCHA_URL', APPLICATION_URL. '/public/captcha');










